package cn.neusoft.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hxj
 * @since 2024-12-11
 */
@TableName("t_orderdetail")
public class Orderdetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "detailId", type = IdType.AUTO)
    private Integer detailId;

    /**
     * 所属订单编号
     */
    private Integer orderId;

    /**
     * 所属餐品编号
     */
    private Integer foodId;

    /**
     * 数量
     */
    private Integer quantity;

    public Integer getDetailId() {
        return detailId;
    }

    public void setDetailId(Integer detailId) {
        this.detailId = detailId;
    }
    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
    public Integer getFoodId() {
        return foodId;
    }

    public void setFoodId(Integer foodId) {
        this.foodId = foodId;
    }
    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    @Override
    public String toString() {
        return "Orderdetail{" +
            "detailId=" + detailId +
            ", orderId=" + orderId +
            ", foodId=" + foodId +
            ", quantity=" + quantity +
        "}";
    }
}
